require 'watir'
include Watir
require 'test/unit'
require 'test/unit/ui/console/testrunner'
require 'watir/testUnitAddons'
require 'watir/testcase'
require 'watir/contrib/enabled_popup'

class TC_Home < Test::Unit::TestCase
  def test_04_ValidatingAnAdminCanChangeTheTitleOfTheHomePage
    $ie.goto($UniVar)
    $ie.refresh()
    $ie.refresh()

    $ie.div(:id, /ctl00_ctl00_bhcr_ctl01_ctl00_ctl02/).fire_event('onDblClick')
    $ie.text_field(:id, /ctl00_ctl00_bhcr_ctl01_ctl00_Editor/).value = "Test if watir can change message"
    $ie.link(:text, 'Save').click
    $ie.refresh()
    assert($ie.contains_text('Test if watir can change message'))
  end
end